-- GENERATED SPELL FOR [Nak] --


function spell0_3434(pUnit, Event) --@Lesser Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(8004,pUnit)
pUnit:RegisterEvent('Sorts_3434', 1500, 1)
end

function spell1_3434(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3434', 3000, 1)
end

function spell2_3434(pUnit, Event) --@Stoneskin Totem,Self--
pUnit:FullCastSpellOnTarget(8154,pUnit)
pUnit:RegisterEvent('Sorts_3434', 571, 1)
end

function Sorts_3434(pUnit, Event)
local choix_sorts_3434 = math.random(0, 2)
if choix_sorts_3434 == 0 then
pUnit:RegisterEvent('spell0_3434', 1, 1)
end
if choix_sorts_3434 == 1 then
pUnit:RegisterEvent('spell1_3434', 1, 1)
end
if choix_sorts_3434 == 2 then
pUnit:RegisterEvent('spell2_3434', 1, 1)
end
end

function mob3434_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3434', math.random(1500, 3000), 1)
end

function mob3434_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3434_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3434_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3434, 1, 'mob3434_Action')
RegisterUnitEvent(3434, 2, 'mob3434_Leave')
RegisterUnitEvent(3434, 3, 'mob3434_Kill')
RegisterUnitEvent(3434, 4, 'mob3434_Die')
